/**
 * 
 */
package com.sci.web.action.datareportseason.enterprise_attachment;


import javax.annotation.Resource;

import com.sci.web.action.util.BaseAction;
import com.sci.web.dao.DateReportM_Enterprise_AttachmentDao;

/**
 * @author BaiFuyou
 * @date: Nov 8, 2011 11:51:11 AM
 */
public class GetAllEnterprise_AttachmentByUidAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7087575859373755051L;
	@Resource
	private DateReportM_Enterprise_AttachmentDao dateReportM_Enterprise_AttachmentDao;
	private int uid;

	public int getUid() {
		return this.uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		super.setContentType(super.JSON);
		super.outPrint(super.getJSONArrayString(dateReportM_Enterprise_AttachmentDao.getEnterprise_AttachmentByUid(uid)));
		return "json";
	}

}
